static unsigned long Seed = 1;  
define A 48271L  
define M 2147483647  

INT8U pri_numFunc(INT8U argc,char **argv)
{
    if(argc != 1)
    {
        _error("please input command as:pnum studentnumber");
        _error("\n\n");
        return 1;
    }

    if(!argv[1])
    {
        _log("your random studentnumber is:");
        int i,j;
        char temp;
        int array[8];
        for(i=0;i<8;i++){
            array[i] = (int)(Random()*10)%8;

        }
        for(j=0;j<8;j++){
            temp = argv[1][j];
            argv[1][j] = argv[1][array[j]];
            argv[1][array[j]] = temp;
        }
        _log(argv[1]);
        _log("\n\n");
    }
    else
    {
        _error("pname failure! please check your input!\n");
    }
    return 0;
}